<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{zjpjyjForm.bundleName}"/>
    <head>
        <title>#{text['zjpjyjDetail.title']}</title>
        <meta name="heading" content="#{text['zjpjyjDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="zjpjyjForm">

<h:form id="zjpjyjForm" onsubmit="return validateZjpjyjForm(this)">
<h:inputHidden value="#{zjpjyjForm.zjpjyj.id}" id="id"/>
<h:inputHidden value="#{zjpjyjForm.zjpjyj.version}" id="version"/>
<h:panelGrid columns="3">
    <h:outputLabel styleClass="desc" for="cpyj" value="#{text['zjpjyj.cpyj']}"/>
    <t:message for="cpyj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="cpyj" value="#{zjpjyjForm.zjpjyj.cpyj}" required="false" maxlength="2000">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="ny" value="#{text['zjpjyj.ny']}"/>
    <t:message for="ny" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="ny" value="#{zjpjyjForm.zjpjyj.ny}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="pdxydj" value="#{text['zjpjyj.pdxydj']}"/>
    <t:message for="pdxydj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="pdxydj" value="#{zjpjyjForm.zjpjyj.pdxydj}" required="false" maxlength="5">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="pjrya" value="#{text['zjpjyj.pjrya']}"/>
    <t:message for="pjrya" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="pjrya" value="#{zjpjyjForm.zjpjyj.pjrya}" required="false" maxlength="10">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="pjryb" value="#{text['zjpjyj.pjryb']}"/>
    <t:message for="pjryb" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="pjryb" value="#{zjpjyjForm.zjpjyj.pjryb}" required="false" maxlength="10">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zyts" value="#{text['zjpjyj.zyts']}"/>
    <t:message for="zyts" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zyts" value="#{zjpjyjForm.zjpjyj.zyts}" required="false" maxlength="1024">
    </h:inputText>

    <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{zjpjyjForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty zjpjyjForm.zjpjyj.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{zjpjyjForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Zjpjyj')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>
    <h:outputText/><h:outputText/>
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateZjpjyjForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('zjpjyjForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
